package com.cgsrp.cgsrp_community.domain;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.cgsrp.cgsrp_user_province.domain.User;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Blog  implements Serializable {
    /**
    * 主键
    */
    private Integer id;

    /**
    * 文章标题
    */
    private String title;

    /**
    * 内容
    */
    private String blog;

    /**
    * 封面地址
    */
    private String coverPath;

    /**
    * 创建时间
    */
    private Date creatTime;

    /**
    * 创建者的id
    */
    private Integer creatBy;

    /**
    * 更新时间
    */
    private Date updateTime;

    private int likeCount;
    private int commentCount;
    private List<BlogComment> comments;
    private User user;


    /* 打分，用于评定推荐顺序 */
    private Integer recommendationLevel;
}
